package string;

/**
 * StringBuilderDemo修改字符串内容的效率测试
 */
public class StringBuilderDemo2 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("a");
        for (int i = 0 ; i < 1000000 ; i++){
            sb.append("a");
        }
        System.out.println("执行完毕");
        System.out.println(sb.length());
    }
}
